package com.ruoyi.system.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门票信息对象 ticket
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Data
public class Ticket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 门票标题 */
    @Excel(name = "门票标题")
    private String title;

    /** 门票价格（精确到分） */
    @Excel(name = "门票价格", readConverterExp = "精=确到分")
    private BigDecimal price;

    /** 关联景点id */
    @Excel(name = "关联景点id")
    private String aid;

    /** 门票类型 */
    @Excel(name = "门票类型")
    private String tid;

    private String name;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setAid(String aid) 
    {
        this.aid = aid;
    }

    public String getAid() 
    {
        return aid;
    }

    public void setTid(String tid) 
    {
        this.tid = tid;
    }

    public String getTid() 
    {
        return tid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("price", getPrice())
            .append("aid", getAid())
            .append("tid", getTid())
            .toString();
    }
}
